package day0717;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        //正确数字
        int rightNumber=65;

        //输入猜的数
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入数字");
        int inputNumber=sc.nextInt();


        while(rightNumber!=inputNumber){
            if(rightNumber>inputNumber){
                System.out.println("猜错了(猜小了)，请继续猜");
            }else{
                System.out.println("猜错了(猜大了)，请继续猜");
            }
            inputNumber=sc.nextInt();
        }

        System.out.println("恭喜你，猜对了");

    }
}
